package com.jihox.abookpro.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class OrderListItem implements Serializable{

	private static final long serialVersionUID = 1L;
	private String orderId;  		//订单id
	private String receiver;		//收货人
	private String phone;			//收货电话
	private String address;			//收货地址
	private float discountAmount;	//优惠金额
	private String discountCode;	//优惠码
	private String status;			//状态
	private float totalAmount;		//总金额（含运费）
	private String wayBillCode;		//运单号
	private Date createDate;		//创建日期
	private String remark;			//订单备注
	private List<OrderItem> orderItems;
	private List<Logisticvo> logisticvos;
	private boolean isInUpload = false;		//是否在上传中
	
	public List<Logisticvo> getLogisticvos() {
		return logisticvos;
	}
	public void setLogisticvos(List<Logisticvo> logisticvos) {
		this.logisticvos = logisticvos;
	}
	
	public boolean isInUpload() {
		return isInUpload;
	}
	public void setInUpload(boolean isInUpload) {
		this.isInUpload = isInUpload;
	}
	public List<OrderItem> getOrderItems() {
		return orderItems;
	}
	public void setOrderItems(List<OrderItem> orderItems) {
		this.orderItems = orderItems;
	}
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	
	public String getReceiver() {
		return receiver;
	}
	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public float getDiscountAmount() {
		return discountAmount;
	}
	public void setDiscountAmount(float discountAmount) {
		this.discountAmount = discountAmount;
	}
	public String getDiscountCode() {
		return discountCode;
	}
	public void setDiscountCode(String discountCodes) {
		this.discountCode = discountCodes;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public float getTotalAmount() {
		return totalAmount;
	}
	public void setTotalAmount(float totalAmount) {
		this.totalAmount = totalAmount;
	}
	public String getWayBillCode() {
		return wayBillCode;
	}
	public void setWayBillCode(String wayBillCode) {
		this.wayBillCode = wayBillCode;
	}
	
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public static class Logisticvo implements Serializable{

		/**
		 * 
		 */
		private static final long serialVersionUID = 1L;
		
		private String code;
		private ShippingTypeVo shippingTypeVo;
		
		public ShippingTypeVo getShippingTypeVo() {
			return shippingTypeVo;
		}

		public void setShippingTypeVo(ShippingTypeVo shippingTypeVo) {
			this.shippingTypeVo = shippingTypeVo;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}
	}
	
	public static class ShippingTypeVo implements Serializable{

		/**
		 * 
		 */
		private static final long serialVersionUID = 1L;
		
		private String code;

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}
		
	}

	public static class OrderItem implements Serializable{
		private int productId;			//产品类型
		private String productName;		//产品名称
		private float itemPrice;		//产品单价
		private int number;				//产品数量
		private float price;
		
		public float getPrice() {
			return price;
		}
		public void setPrice(float price) {
			this.price = price;
		}
		public String getProductName() {
			return productName;
		}
		public void setProductName(String productName) {
			this.productName = productName;
		}
		public int getProductId() {
			return productId;
		}
		public void setProductId(int productId) {
			this.productId = productId;
		}
		public float getItemPrice() {
			return itemPrice;
		}
		public void setItemPrice(float itemPrice) {
			this.itemPrice = itemPrice;
		}
		public int getNumber() {
			return number;
		}
		public void setNumber(int acount) {
			this.number = acount;
		}
	}
}